package gao.xiaolei.dao;

import gao.xiaolei.entity.Groupcs;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.time.LocalDateTime;

@Repository("GroupDao")
public interface GroupDao extends JpaRepository<Groupcs, String> {

	@Query(value = "select name from Groupcs where id= :id")
	public String getGroupName(@Param("id") String id);

	@Query(value = "select createDate from Groupcs where id= :id")
	public LocalDateTime getCreateDate(@Param("id") String id);


}
